package com.story.api.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * @author Administrator
 * @decription 专辑和视频的关联表实体对象
 * @Date 2018-05-03 8:51
 */
@TableName(value = "cate_vedio")
public class CateVedio extends Model<CateVedio>  {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer cateId;

    private Integer vedioId;

    public CateVedio() {
    }

    public CateVedio(Integer id, Integer cateId, Integer vedioId) {
        this.id = id;
        this.cateId = cateId;
        this.vedioId = vedioId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    public Integer getVedioId() {
        return vedioId;
    }

    public void setVedioId(Integer vedioId) {
        this.vedioId = vedioId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CateVedio{" +
                "id=" + id +
                ", cateId=" + cateId +
                ", vedioId=" + vedioId +
                '}';
    }
}
